/**
 * @Title: KaoQinController.java
 * @Package com.ruoyi.web.controller.kaoqin
 * @Description: 
 * Copyright: Copyright (c) 2019 www.codepeople.cn Inc. All rights reserved. 
 * Website: www.codepeople.cn
 * 注意：本内容仅限于海南科澜技术信息有限公司内部传阅，禁止外泄以及用于其他的商业目 
 * @Author 刘仁
 * @DateTime 2019年5月20日 下午4:42:12
 * @version V1.0
 */

package com.ruoyi.web.controller.supervise.enterprise;



import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpSession;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;

/**
 * @ClassName: projectAllController
 * @Description: 
 * @Author 吴挺杰
 * @DateTime 2019年11月11日 下午3:53:43
 */
@Controller
@RequestMapping("/enterprise/enterpriseOutProvince")
public class enterpriseOutProvinceController extends BaseController{
	
	private String prefix = "supervise/enterprise/enterpriseOutProvince";
	private String prefixMain = "supervise/enterprise/enterpriseOutDetail";
	
	@RequiresPermissions("enterprise:enterpriseOutProvince:view")
	@GetMapping()
	public String enterpriseInProvince()
	{
	    return prefix + "/enterpriseOutProvince";
	}
	
	/**
     *  详情
    */
   @GetMapping("/detail")
   public String detail(String name,HttpSession session,ModelMap mmap)
   {
   	session.setAttribute("projectName", name);
   	mmap.put("projectName", session.getAttribute("projectName"));
       return prefixMain + "/qiye";
   }
   
   @GetMapping("/qiyejibnexinxi")
   public String qiyejibnexinxi(HttpSession session,ModelMap mmap)
   {
   	mmap.put("projectName", session.getAttribute("projectName"));
       return prefixMain + "/qiyejibnexinxi";
   }
   
   @GetMapping("/qiyezizhi")
   public String qiyezizhi(HttpSession session,ModelMap mmap)
   {
   	mmap.put("projectName", session.getAttribute("projectName"));
       return prefixMain + "/qiyezizhi";
   }
   
   
   @GetMapping("/qiyelianghaoxinxi")
   public String qiyelianghaoxinxi(HttpSession session,ModelMap mmap)
   {
   	mmap.put("projectName", session.getAttribute("projectName"));
       return prefixMain + "/qiyelianghaoxinxi";
   }
   
   @GetMapping("/qiyerenyuanall")
   public String qiyerenyuanall(HttpSession session,ModelMap mmap)
   {
   	mmap.put("projectName", session.getAttribute("projectName"));
       return prefixMain + "/qiyerenyuanall";
   }
   
   @PostMapping("/qiyerenyuanallList")
   @ResponseBody
   public TableDataInfo qiyerenyuanallList(HttpSession session)
   {
       startPage();
       Map<String,Object> map=new HashMap<String,Object>();
       Map<String,Object> mapp=new HashMap<String,Object>();
       List<Map> list=new ArrayList<Map>();
   	map.put("name", "易伟");
   	map.put("sex", "男");
   	map.put("post", "董事长");
   	map.put("phone", " ");
   	map.put("type", "建筑工程工程师、A类企业主要负责人");
   	map.put("address", "海南省海口市海秀中路132-2鑫业园商住楼第四层");
   	list.add(map); 
       return getDataTable(list);
   }
   
   @GetMapping("/qiyeyejixinxiall")
   public String qiyeyejixinxiall(HttpSession session,ModelMap mmap)
   {
   	mmap.put("projectName", session.getAttribute("projectName"));
       return prefixMain + "/qiyeyejixinxiall";
   }
   
   @PostMapping("/qiyeyejixinxiallList")
   @ResponseBody
   public TableDataInfo qiyeyejixinxiallList(HttpSession session)
   {
       startPage();
       Map<String,Object> map=new HashMap<String,Object>();
       Map<String,Object> mapp=new HashMap<String,Object>();
       List<Map> list=new ArrayList<Map>();
   	map.put("name", "田德海泉湾A区");
   	map.put("city", "海南省海口市");
   	map.put("qualificationstype", "建筑业企业资质");
   	map.put("money", "200000");
   	map.put("datasources", "人工上报");
   	list.add(map); 
   	mapp.put("name", "仁恒海棠公园一期（C区）");
   	mapp.put("city", "海南省海口市");
   	mapp.put("qualificationstype", "建筑业企业资质");
   	mapp.put("money", "3366.7434");
   	mapp.put("datasources", "人工上报");
   	list.add(mapp); 
       return getDataTable(list);
   }
   
   /**
    * 核查信息详情
    */
   @GetMapping("/qiyeyejixinxiDetail/{name}")
   public String detail(@PathVariable("name") String name, ModelMap mmap,HttpSession session)
   {
   	mmap.put("name", name);
   	mmap.put("projectName", session.getAttribute("projectName"));
       return prefixMain + "/qiyeyejixinxi";
   }
   
   @GetMapping("/chengxinpingjia")
   public String chengxinpingjia(HttpSession session,ModelMap mmap)
   {
   	mmap.put("projectName", session.getAttribute("projectName"));
       return prefixMain + "/chengxinpingjia";
   }
   
   @GetMapping("/qiyebuliangxinxi")
   public String qiyebuliangxinxi(HttpSession session,ModelMap mmap)
   {
   	mmap.put("projectName", session.getAttribute("projectName"));
       return prefixMain + "/qiyebuliangxinxi";
   }
   
}
